package one.stand.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

@Data
@EqualsAndHashCode(callSuper = true)
public class CardSaveEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent
     */
    private CardSaveEvent() {
        super("card save");
    }

    public CardSaveEvent(Integer id, boolean isBoss, boolean clientJxs, boolean noPassword) {
        this();
        this.id = id;
        this.isBoss = isBoss;
        this.clientJxs = clientJxs;
        this.noPassword = noPassword;
    }

    private Integer id;
    private boolean isBoss;
    private boolean clientJxs;
    private boolean noPassword;
}
